import request from 'request'
// 获取
export function getEmployees (params) {
  return request({
    url: '/sys/user',
    params
  })
}
// 删除

export function delEmployees (id) {
  return request({
    method: 'delete',
    url: `/sys/user/${id}`
  })
}
// 新增员工

export function addEmployees (data) {
  return request({
    method: 'POST',
    url: `/sys/user`,
    data
  })
}
// 上传表格
export function importEmployee (data) {
  return request({
    url: '/sys/user/batch',
    method: 'post',
    data
  })
}
